<script>
	import onekeyLogin from "@/utils/onkeylogin.js"
	export default {
		globalData: {
			productInfo: {}
		},
		onLaunch: function() {
			// if (!token) {
			// 	onekeyLogin()
			// }

		},
		onShow: function() {
			uni.addInterceptor('navigateTo', {
				invoke() {
					console.log('get it')
					// return false
					return true
				}
			})
			uni.addInterceptor('switchTab', {
				invoke() {
					console.log('get it tab')
					// return false
					return true
				}
			})
			//判断用户是否登入,判断本地是否有token
			// let token = uni.getStorageSync('myx-token');
			// console.log('---token', token)
			// console.log('++++',getCurrentPages())
		},
		onHide: function() {
			console.log('App Hide')
		},

		onUnhandledRejection(e) {
			console.log('rejection', e)
		},
		onPageNotFound(o) {
			console.log('pageNotFoutn', o)
		},
		onError(e) {
			console.log('错误了', e)
		}
	}
</script>

<style>
	/*每个页面公共css */
	.content {
		background-color: #F8F8F8
	}
</style>